<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>练习网站列表</title>
 	<%@include file="/WEB-INF/jsp/public/commons.jspf" %>	
  </head>
  
  <body>
  	<div id="container">
  		<%-- 头信息 --%>
		<%@include file="/header.jspf" %>
		<div id="wrapper">
			<%-- 主页面信息 --%>
			<div id="content">
					<h1>练习网站列表</h1><hr/><br/>
					当前网站列表：<br/><br/>
					<table id="TabMain">
						<thead id="TabHeader"> 
							<tr>
								<td width="20%">编号</td>
								<td width="55%">网站</td>
								<td width="25%">管理</td>
							</tr>
						</thead>
						<s:iterator value="ojList" status="st">
							<tr>
								<td><s:property value="#st.count"/></td>
								<td><a href='<s:property value="url"/>' target="_blank"><s:property value="name"/></a></td>
								<td>
									<s:a action="OjAction_toEditPage">
										<s:param name="id" value="id"/>[编辑]
									</s:a>
									<s:a action="OjAction_delete">
										<s:param name="id" value="id"/>[删除]
									</s:a>
								</td>
							</tr>
						</s:iterator>
					</table><br/><br/><hr/><br/>
					
			</div>
			<%-- 右侧边栏 --%>
			<div id="sidebar">
				<%@include file="admin_sidebar.jsp" %>
			</div>
		</div>
		
		<%-- 底部信息 --%>
		<%@include file="/footer.jspf" %>
	</div>	
  	
  </body>
</html>
